const mongoose=require("mongoose");
const expenseSchema = new mongoose.Schema({
    expense_id:{
        type:String,
        unique:true,
        required:true
    },
    member_id:{
        type:String,
        required:true
    },
    detail:{
        type:String
    },
    date:{
        type:Date,
        required:true,
        default:Date.now()
    },
    employee_id:{
        type:String,
        required:true
    },
    discount:{
        type:Number,
        required:true
    },
    yingshou:{
        type:Number,
        required:true
    },
    shishou:{
        type:Number,
        required:true
    }
});
module.exports = mongoose.model("expenses",expenseSchema);